package com.twu.biblioteca.service;

import com.twu.biblioteca.core.User;

import java.util.ArrayList;
import java.util.List;

public class UserService {
    private List<User> users = new ArrayList<>();

    public void addUser(User user) {
        users.add(user);
    }

    public boolean checkUser(User user) {
        return users.contains(user);
    }
}
